package com.wicket.okrcalc.integration.dto;

import com.wicket.okrcalc.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @desc ThemeEvaluationCrossDto
 * @使用场景
 */
@Data
public class ThemeEvaluationCrossDto extends BaseDto implements Serializable {

  /**
   * 主题整合评价模板ID
   */
  @ApiModelProperty("主题整合评价模板ID")
  private String themeEvaTempId;

  /**
   * 评价模板ID
   */
  @ApiModelProperty("评价模板ID")
  private String evaTempId;

  /**
   * 关联整合主题ID
   */
  @ApiModelProperty("关联整合主题ID")
  private String integrateThemeId;

  /**
   * 是否展示
   */
  @ApiModelProperty("是否展示")
  private String isShow;

  /**
   * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
   */
  @ApiModelProperty("主体生命周期")
  private String subjectLifeCycle;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    ThemeEvaluationCrossDto that = (ThemeEvaluationCrossDto) o;
    return (
      themeEvaTempId == that.themeEvaTempId &&
      evaTempId == that.evaTempId &&
      integrateThemeId == that.integrateThemeId &&
      isShow == that.isShow &&
      subjectLifeCycle == that.subjectLifeCycle
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      themeEvaTempId,
      evaTempId,
      integrateThemeId,
      isShow,
      subjectLifeCycle
    );
  }

}
